import { Column, CreateDateColumn, Entity, ObjectId, ObjectIdColumn } from "typeorm"

@Entity("addressInfo")
export class addressInfo {
    @ObjectIdColumn()  
    _id: ObjectId;  
  
    @Column()  
    userId: string;  
  
    @Column()  
    address: string;

    @Column()
    phone: string;

    @Column()
    name: string;

    @Column()
    flag: string;

    @CreateDateColumn()
    date: Date;
}
